import {Pipe, PipeTransform} from '@angular/core';

@Pipe({
    name: 'kylinRoleName'
})
export class RoleNamePipe implements PipeTransform {

    transform(value: any, args?: any): any {
        const target = {sysadmin: '超级管理员', 'provinceAdmin': '省级管理员', 'cityAdmin': '市级管理员', 'areaAdmin': '县级管理员'};
        return target[value];
    }

}
